const {app,assert} = require('egg-mock/bootstrap');
describe('test\extend\context.test.js',()=>{
    // ctx.get('accept-language');
   it('context language',()=>{
       let ctx = app.mockContext({
           headers:{
               'accept-language':'zh-cn'
           }
       });
       //ctx.get('accept-language')=='zh-cn';
       assert(ctx.language == 'zh-cn');
   });
});